package com.outlook.lang;

import java.util.ArrayList;
import java.util.Iterator;

@SuppressWarnings("hiding")
public class MetaData<KeyValuePair> extends ArrayList<KeyValuePair> {

	private static final long serialVersionUID = 1L;

	@Override
	public String toString() {
		Iterator<KeyValuePair> i = iterator();
		if (! i.hasNext())
		    return "[]";

		StringBuilder sb = new StringBuilder();
		sb.append('[');
		for (;;) {
			KeyValuePair e = i.next();
		    sb.append(e.toString());
		    if (! i.hasNext())
			return sb.append(']').toString();
		    sb.append(", ");
		}
	}
	
	public static void main(String[] args) {
		
	}
}
